//
//  LBViewController.m
//  LBMarqueeLabel
//
//  Created by liubo on 07/22/2023.
//  Copyright (c) 2023 liubo. All rights reserved.
//

#import "LBViewController.h"
#import "LBMarqueeLabel-Prefix.pch"
#import <LBMarqueeLabel/LBMarqueeLabel.h>

@interface LBViewController ()

@end

@implementation LBViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    LBMaqueeLabelConfig *configuration = [[LBMaqueeLabelConfig alloc] init];
    configuration.text = @"顺治四年（1647年）六月，南明官军王祥部总";
    configuration.textColor = [UIColor cyanColor];
    configuration.font = [UIFont systemFontOfSize:19];
    configuration.rate = 2;
    configuration.delayTime = 2;
    LBMarqueeLabel *label = [[LBMarqueeLabel alloc] initWithFrame:CGRectMake(20, 400, CGRectGetWidth(self.view.bounds) - 200, 40) configuration:configuration];
    [self.view addSubview:label];
    label.backgroundColor = [UIColor redColor];
    [label linkStart];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
